package com.example.myapplication.presenter;

import com.example.myapplication.base.BasePresenter;
import com.example.myapplication.bean.SystemsBean;
import com.example.myapplication.model.SystemsModel;
import com.example.myapplication.net.ResultCallBack;
import com.example.myapplication.view.SystemsView;

public class SystemsPresenter extends BasePresenter<SystemsView> {

    private SystemsModel systemsModel;

    @Override
    protected void initModel() {
        systemsModel = new SystemsModel();
        addModel(systemsModel);
    }

    public void getSystemsData() {
        systemsModel.getSystemsData(new ResultCallBack<SystemsBean>() {
            @Override
            public void onSuccess(SystemsBean systemsBean) {
                mView.setData(systemsBean);
            }

            @Override
            public void onFail(String msg) {

            }
        });
    }
}
